#include "MainFrame/CentralWidget/CentralManager.h"
#include "MainFrame/CentralWidget/CentralWidget.h"

CentralWidget* CentralManager::m_pCentralWidget = nullptr;

CentralManager::CentralManager()
{

}

CentralManager::~CentralManager()
{

}

void CentralManager::setCentralWidget(CentralWidget *centralwidget)
{
    m_pCentralWidget = centralwidget;
}

void CentralManager::updateImageViewWidget()
{
    m_pCentralWidget->updateImageViewWidget();
}

void CentralManager::addImageViewWidget(const QString &imagename)
{
    m_pCentralWidget->addImageViewWidget(imagename);
}

void CentralManager::setEnCurToolState(const ToolState &enCurToolState)
{
    m_pCentralWidget->setEnCurToolState(enCurToolState);
}
